package com.yanqu.road.entity.log.newmonopolymarket;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;


@FieldTypeAnnotation(tableName = "t_l_ck_new_monopoly_market_user_physical_log_data", autoSave = true,uploadCk = true,desc = "榷署关引变更日志")
public class NewMonopolyMarketUserPhysicalChangeLogData extends ServerBaseLog {
    @FieldTypeAnnotation(isIndex = true,desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(isIndex = true,desc = "周id")
    private int weekId;
    @FieldTypeAnnotation(desc = "占领的位置id -1表示未占领")
    private int posIndex;
    @FieldTypeAnnotation(desc = "位置等级")
    private int level;
    @FieldTypeAnnotation(desc = "位置编号")
    private int no;
    @FieldTypeAnnotation(desc = "变更类型 0重置 1搜索抢夺消耗 2榷署撤回 3道具获得 4挑战消耗 5自然恢复")
    private int type;
    @FieldTypeAnnotation(desc = "变更前数量")
    private long oldValue;
    @FieldTypeAnnotation(desc = "变更后数量")
    private long newValue;


    public NewMonopolyMarketUserPhysicalChangeLogData(long userId, int weekId, int posIndex, int level, int no, int type, long oldValue, long newValue) {
        this.userId = userId;
        this.weekId = weekId;
        this.posIndex = posIndex;
        this.level = level;
        this.no = no;
        this.type = type;
        this.oldValue = oldValue;
        this.newValue = newValue;
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getWeekId() {
        return weekId;
    }

    public void setWeekId(int weekId) {
        this.weekId = weekId;
    }

    public int getPosIndex() {
        return posIndex;
    }

    public void setPosIndex(int posIndex) {
        this.posIndex = posIndex;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getOldValue() {
        return oldValue;
    }

    public void setOldValue(long oldValue) {
        this.oldValue = oldValue;
    }

    public long getNewValue() {
        return newValue;
    }

    public void setNewValue(long newValue) {
        this.newValue = newValue;
    }


}
